<!DOCTYPE html>
<html lang="zxx">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>FoodKa - Food Ordering, Delivery & Restuarent Template</title>

    <!-- Stylesheet -->
    <link rel="stylesheet" href="static/css/animate.min.css">
    <link rel="stylesheet" href="static/css/bootstrap.min.css">
    <link rel="stylesheet" href="static/css/magnific.min.css">
    <link rel="stylesheet" href="static/css/jquery-ui.min.css">
    <link rel="stylesheet" href="static/css/nice-select.min.css">
    <link rel="stylesheet" href="static/css/owl.min.css">
    <link rel="stylesheet" href="static/css/slick-slide.min.css">
    <link rel="stylesheet" href="static/css/fontawesome.min.css">
    <link rel="stylesheet" href="static/css/remixicon.css">
    <link rel="stylesheet" href="static/css/style.css">
    <link rel="stylesheet" href="static/css/responsive.css">
    <link rel="stylesheet" type="text/css" href="static/css/common.css">
    <link rel="stylesheet" type="text/css" href="static/css/login.css">
    <script src="js/angular.min.js"></script>
    <script src="static/js/jquery-3.3.1.js"></script>

    <!--Google Fonts-->
    <link href="static/css/css2.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>

    <script>
        $(function () {
            $("#loginButton").click(function () {
                $.post("/Pizza_war_exploded/User/login",
                    $("#loginForm").serialize(),
                    function (data) {
                        if (!data.flag){
                            // 登录失败, 显示错误信息 data.errorMsg
                            $("#errorMsg").html(data.errorMsg);
                            $("#errorMsg").css("display", "block");
                            // 更新验证码
                            // changeCheckCode($("#imgCode").get(0))
                        } else {
                            // 页面跳转 -> 首页
                            // self.location=document.referrer;
                            // history.back();
                            location.href="index.html";
                        }
                    },"json");
            });
        });
    </script>
</head>
<body class='sc5'>
<!-- preloader area start -->
<div class="preloader" id="preloader">
    <div class="preloader-inner">
        <div id="wave1">
        </div>
        <div class="spinner">
            <div class="dot1"></div>
            <div class="dot2"></div>
        </div>
    </div>
</div>
<!-- preloader area end -->
<!-- search popup area start -->
<div class="body-overlay" id="body-overlay"></div>
<div class="td-search-popup" id="td-search-popup">
    <form action="index.html" class="search-form">
        <div class="form-group">
            <input type="text" class="form-control" placeholder="Search.....">
        </div>
        <button type="submit" class="submit-btn"><i class="fa fa-search"></i></button>
    </form>
</div>
<!-- //. search Popup -->

<!-- navbar start -->
<div id="header"></div>
<!-- navbar end -->
<section class="banner-area">
    <div class="banner-thumb">
        <img src="static/picture/banner.png" alt="img">
    </div>
    <div class="banner-bg-img"></div>
    <div class="banner-shape-1"><img src="static/picture/shape-1.png" alt="img"></div>
    <div class="banner-shape-2"><img src="static/picture/shape-2.png" alt="img"></div>
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-lg-6 col-md-8 align-self-center">
                <div class="banner-inner text-center">
                    <div class="login-box">
                        <div class="title">
<!--                            <img src="images/login_logo.png" alt="">-->
                            <span>欢迎登录点餐系统</span>
                        </div>
                        <div class="login_inner">

                            <!--登录错误提示消息-->
                            <div id="errorMsg" class="alert alert-danger" ></div>
                            <form id="loginForm" action="" method="post" accept-charset="utf-8">
                                <input type="hidden" name="action" value="login"/>
                                <input name="username" type="text" placeholder="请输入账号" autocomplete="off">
                                <input name="password" type="text" placeholder="请输入密码" autocomplete="off">
                                <div class="verify">
                                    <input name="check" type="text" placeholder="请输入验证码" autocomplete="off">
                                    <span><img src="/Pizza_war_exploded/check/checkCode" alt="" onclick="changeCheckCode(this)"></span>
                                    <script type="text/javascript">
                                        // 图片点击事件
                                        function changeCheckCode(img) {
                                            img.src="/Pizza_war_exploded/check/checkCode?"+new Date().getTime();
                                        }
                                    </script>
                                </div>
                                <div class="submit_btn">
                                    <button type="button" id="loginButton">登录</button>
                                    <div class="auto_login">
                                        <input type="checkbox" name="" class="checkbox">
                                        <span>自动登录</span>
                                    </div>
                                </div>
                            </form>
                            <div class="reg">没有账户？<a href="register1.html">立即注册</a></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>


<!-- footer area start -->
<div id="footer"></div>
<!-- footer area end -->

<!-- back-to-top end -->
<div class="back-to-top">
    <span class="back-top"><i class="fas fa-angle-double-up"></i></span>
</div>



<!-- all plugins here -->
<script src="static/js/jquery.3.6.min.js"></script>
<script src="static/js/bootstrap.min.js"></script>
<script src="static/js/imageloded.min.js"></script>
<script src="static/js/counterup.js"></script>
<script src="static/js/waypoint.js"></script>
<script src="static/js/magnific.min.js"></script>
<script src="static/js/isotope.pkgd.min.js"></script>
<script src="static/js/jquery-ui.min.js"></script>
<script src="static/js/nice-select.min.js"></script>
<script src="static/js/fontawesome.min.js"></script>
<script src="static/js/owl.min.js"></script>
<script src="static/js/slick-slider.min.js"></script>
<script src="static/js/wow.min.js"></script>
<script src="static/js/tweenmax.min.js"></script>
<!-- main js  -->
<script src="static/js/main.js"></script>
<script src="static/js/jquery-1.11.0.min.js"></script>
<script src="static/js/bootstrap01.min.js"></script>
<script type="text/javascript" src="static/js/include.js"></script>
</body>
</html>